| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | /** global: jest */ |
||
| 5 | describe('Index routes.', () => { |
||
| 6 | test('GET page by streamId', (done) => { |
||
| 7 | const request = { |
||
| 8 | method: 'GET', |
||
| 9 | url: '/testId', |
||
| 10 | }; |
||
| 11 | const response = { |
||
| 12 | render: (tpl, data) => { |
||
| 13 | expect(tpl).toBe('index'); |
||
| 14 | expect(typeof data).toBe('object'); |
||
| 15 | done(); |
||
| 16 | }, |
||
| 17 | }; |
||
| 18 | |||
| 19 | router.handle(request, response); |
||
| 20 | }); |
||
| 21 | }); |
||
| 22 |